﻿Start-Job -Name wp3 -ScriptBlock {for($i=0;$i -le 100;$i++){$dirName="c:\hr\"+$i;New-Item -ItemType Directory -Path $dirName}}
Wait-Job -Name wp3
#Start-Job -Name wp1 -ScriptBlock {for($i=0;$i -le 100;$i++){$dirName="c:\hr\"+$i;Remove-Item -ItemType Directory -Path $dirName -Recurse -Force -ErrorAction SilentlyContinue }}

Start-Job -Name wp3 -ScriptBlock {
    for($i=0;$i -le 100;$i++){
        $dirName="c:\hr\"+$i
        Remove-Item -Path $dirName -Recurse -Force -ErrorAction SilentlyContinue
    }
}
#Wait-Job -Name wp2
#Receive-Job -Name wp2